package ihistoryApp.utils;

/**
 * @author 76004
 * @apiNote
 * @date 2023/10/14 0:33
 */

public class RedisKeyConstant {
    /**
     * 存登录token的key：this + ${accountId}
     */
    public static final String ACCOUNT_TOKEN_KEY = "account-token";
    /**
     * 验证码key：this + ${accountId}
     */
    public static final String VALIDATE_CODE = "validate-code-%s";

    /**
     * 文章点赞数: this + ${article_id}
     */
    public static final String ARTICLE_LIKES = "article-like-%s";

    /**
     * 文章点赞数，用于在过期时获取点赞数
     */
    public static final String ARTICLE_LIKES_VALUE = "article-like-%s-value";

    /**
     * 评论点赞数
     */
    public static final String COMMENT_LIKES = "comment-like-%s";

    /**
     * 文章收藏数
     */
    public static final String ARTICLE_COLLECT = "article-collect-%s";


    /**
     * 专栏订阅数
     */
    public static final String COLUMN_ORDER = "order-%s";

    /**
     * 文章触达数
     */
    public static final String ARTICLE_REACH = "article-reach-%s";

    /**
     * 文章-用户访问记录，防止短时间重复访问刷访问量
     */
    public static final String ARTICLE_ACCOUNT_LOG = "article-account-%s";

    /**
     * 文章触达数，用于在过期时获取到访问记录的key
     */
    public static final String ARTICLE_ACCOUNT_VALUE = "article-reach-%s-value";
}
